package com.jcfk.eam.dao.main;

import com.jcfk.common.business.dao.BaseDao;
import com.jcfk.eam.domain.dto.main.EChartDataItem;
import com.jcfk.eam.domain.dto.main.EquStatisticsDTO;
import com.jcfk.eam.domain.po.base.EamRepairOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 故障维修单
 *
 */
@Repository
public interface EquStatisticsRepairOrderDao extends BaseDao<EamRepairOrder> {
    /**
     * 故障维修-年度统计(折线)
     */
    List<EquStatisticsDTO> queryAnnualStatistics(@Param("query") EquStatisticsDTO query);

    /**
     * 故障维修-工段统计(柱状)
     */
    List<EquStatisticsDTO> queryAectionStatistics(@Param("query") EquStatisticsDTO query);

    /**
     * 故障维修-班组统计(饼图)
     */
    List<EChartDataItem> queryTeamStatistics(@Param("query") EquStatisticsDTO query);

    /**
     * 故障维修-故障位置统计(柱状)
     */
    List<EquStatisticsDTO> queryLocationStatistics(@Param("query") EquStatisticsDTO query);
}
